<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.fade-enter-active, .fade-leave-active {
			  transition: opacity .5s;
			}
			.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
			  opacity: 0;
			}
		</style>
	</head>
	<body>
		<div id="demo1">
				<button type="button" @click="flag=!flag">
					Toggle
				</button>
				<transition name="fade">
						<p v-if="flag">hello</p>
				</transition>
			</div>
		<script>
			new Vue({
				el:'#demo1',
				data:{
					flag:true,
				},
			})
		</script>
	</body>
</html>
